package com.leapcloud.crm.core.generate;

import com.leapcloud.crm.core.dto.DTOBean;

/**
 * 数据库表对应的列描述
 */
public class TableColumnDTO extends DTOBean {
  private String table_name; // 表名称

  private String table_comment; // 表描述

  private String column_name; // 列名称

  private String column_name2;

  private String column_name3; // 列名称，首字母大写


  private String column_type; // 列类型

  private String column_type_;


  private String column_comment; // 列描述

  private String column_default;


  private String column_length; // 列最大长度，针对字符型


  private String column_className; // 对应的java数据类型


  public String getColumn_name2() {
    return column_name2;
  }

  public void setColumn_name2(String column_name2) {
    this.column_name2 = column_name2;
  }

  public String getColumn_name3() {
    return column_name3;
  }

  public void setColumn_name3(String column_name3) {
    this.column_name3 = column_name3;
  }

  public String getTable_name() {
    return table_name;
  }

  public void setTable_name(String table_name) {
    this.table_name = table_name;
  }

  public String getTable_comment() {
    return table_comment;
  }

  public void setTable_comment(String table_comment) {
    this.table_comment = table_comment;
  }

  public String getColumn_name() {
    return column_name;
  }

  public void setColumn_name(String column_name) {
    this.column_name = column_name;
  }

  public String getColumn_type() {
    return column_type;
  }

  public void setColumn_type(String column_type) {
    this.column_type = column_type;
  }

  public String getColumn_comment() {
    return column_comment;
  }

  public void setColumn_comment(String column_comment) {
    this.column_comment = column_comment;
  }

  public String getColumn_length() {
    return column_length;
  }

  public void setColumn_length(String column_length) {
    this.column_length = column_length;
  }

  public String getColumn_className() {
    return column_className;
  }

  public void setColumn_className(String column_className) {
    column_className = column_className.substring(column_className.lastIndexOf(".") + 1);
    this.column_className = column_className;
  }


  public String getColumn_type_() {
    return column_type_;
  }

  public void setColumn_type_(String column_type_) {
    this.column_type_ = column_type_;
  }

  public String getColumn_default () {
    return column_default;
  }

  public void setColumn_default (String column_default) {
    this.column_default = column_default;
  }
}